package org.springframework.demo10;

import org.springframework.transaction.annotation.Transactional;

public class Demo10 {

	public static void main(String[] args) {
		aaa();
	}


	//txEvent.publish(id)
	//事务的发布机制
	@Transactional
	public static void aaa(){
		//dao.update()

		int id=10;
		//dao.delete(id)

		//mq.sendMessage(id)


	}

	public void txListner(int id){
		//mq.sendMessage(id)
	}
	public void mqListner(int id){
		//xxxxxxxxxx
	}
}
